<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <div id="app">
        <h3>
            <!-- 表达式 -->
            <!-- {{ html }} -->
        </h3>
        <div v-html="html"></div>
        <!-- <h3 v-text="text">3333333</h3> -->
    </div>

    <!-- <script src="./js/vue.js"></script> -->
    <script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
    <script>
        const app = new Vue({
            // 挂载点
            el: "#app",
            // 存放数据
            data: {
                text: "我是文本222",
                price: 88,
                arr: [1, 2, 3, 4, 3, 2, 1],
                html: "<div href='https://www.baidu.com/'>我是a标签<script src='https://cdn.jsdelivr.net/npm/vue@2'></script></div>"
            }
            // v-text 
            // {{}}  网速比较慢 会显示源代码的内容
            // v-html (尽量不要使用)  xss
        })
    </script>
</body>

</html>